package io.renren.controller;

import io.renren.service.XlsUsersDrawsService;
import io.renren.utils.AppResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;


/**
 * 用户提现记录
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-13
 */
@RestController
@RequestMapping("/api/xlsusersdraws")
@Api(tags="用户提现记录")
public class XlsUsersDrawsController {
    @Autowired
    private XlsUsersDrawsService xlsUsersDrawsService;

    @RequestMapping("/destoonFinanceCash")
    @ApiOperation("用户申请提现")
    public AppResult destoonFinanceCash(@RequestParam("paypassword") String paypassword,
                                        @RequestParam("bankCardId")String bankCardId,
                                        @RequestParam("userId")Long userId,
                                        @RequestParam("cash") BigDecimal cash,
                                        @RequestParam("type")Integer type){
        return xlsUsersDrawsService.destoonFinanceCash(paypassword,bankCardId,userId,cash,type);
    }



}